  <?php 
include_once "../ini.php";
include_once "../thu_vien/xl_user.php";
include_once "../thu_vien/xl_status.php";


$dt_xl_user = new xl_user;
$dt_xl_status = new xl_status;

//kiem tra ton tai nguoi dung
$uid = '';
$flag = 0;
if(!isset($_GET['id'])){
	$uid = $_SESSION['UID'];
	
}
else {
	$uid = $_GET['id'];
	$kq = $dt_xl_user->kiem_tra($uid);
	if(!$kq['uid']) {
		$_SESSION['msg'] = 'Lỗi ! Nội dung không khả dụng!';
		$_SESSION['type_msg'] = 'error';
		header("Location: ".$_SERVER['HTTP_REFERER']);
		exit;
	}
	$flag = 1;
}
$user = $dt_xl_user->xem($uid);
$ds_status = $dt_xl_status->get_status($uid);
?>
  
  <div class="art-vmenublock">
                              <div class="art-vmenublock-tl"></div>
                              <div class="art-vmenublock-tr"></div>
                              <div class="art-vmenublock-bl"></div>
                              <div class="art-vmenublock-br"></div>
                              <div class="art-vmenublock-tc"></div>
                              <div class="art-vmenublock-bc"></div>
                              <div class="art-vmenublock-cl"></div>
                              <div class="art-vmenublock-cr"></div>
                              <div class="art-vmenublock-cc"></div>
                              <div class="art-vmenublock-body">
                                          <div class="art-vmenublockheader">
                                              <h3 class="t"><?php echo $user['name'];?></h3>
                                          </div>
                                          <div class="art-vmenublockcontent">
                                              <div class="art-vmenublockcontent-body">
                                                          <ul class="art-vmenu">
                                                          	<li>
                                                          		<a href="../wall/index.php?id=<?php echo $user['uid'];?>"><span class="l"></span><span class="r"></span><span class="t">Tường nhà</span></a>
                                                          	</li>
                                                          	<li>
                                                          		<a href="../profile/index.php?id=<?php echo $user['uid'];?>"><span class="l"></span><span class="r"></span><span class="t">Thông tin cá nhân</span></a>
                                                          	</li>
                                                            <?php if ($flag==0 || $_SESSION['UID']==$user['uid']) {?>
                                                            	<li>
                                                          		<a href="../profile/edit.php?id=<?php echo $user['uid'];?>"><span class="l"></span><span class="r"></span><span class="t">Sửa thông tin</span></a>
                                                          	</li>
                                                            <?php } ?>
                                                            	<li>
                                                          		<a href="../friend/index.php?id=<?php echo $user['uid'];?>"><span class="l"></span><span class="r"></span><span class="t">Bạn bè</span></a>
                                                          	</li>
                                                             <?php if ($flag==0 || $_SESSION['UID']==$user['uid']) {?>
                                                          	<li class="active">
                                                          		<a class="active" href="page.html?i3"><span class="l"></span><span class="r"></span><span class="t">Tùy chỉnh</span></a>
                                                          		<ul class="active">
                                                          			<li><a href="page.html?i3s1">Subitem 1</a></li>
                                                          			<li><a href="page.html?i3s2" class="active">Subitem 2</a></li>
                                                          			<li><a href="page.html?i3s3">Subitem 3</a></li>
                                                          		</ul>
                                                          	</li>
                                                             <?php } ?>
                                                          </ul>
                                          
                                          		<div class="cleared"></div>
                                              </div>
                                          </div>
                          		<div class="cleared"></div>
                              </div>
                          </div>